package com.imooc.demo.repository;

import com.imooc.demo.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {

//    根据openid查找订单
   Page<OrderMaster> findByBuyerOpenid(String openid, Pageable pageable);
}
